<data>{
    navs: [{
      name: 'index',
      text: '首页'
    }, {
      name: 'about',
      text: '关于我们'
    }, {
      name: 'material',
      text: '选材工艺'
    }, {
      name: 'case',
      text: '定制案例'
    }, {
      name: 'custom',
      text: '定制流程'
    }, {
      name: 'contact',
      text: '展厅店面'
    }]
}</data>
<div class="g-nav">
  {{each navs}}
  {{if $index !== 0}}<span>|</span>{{/if}}
  <a {{if active == $value.name}}class="focus"{{/if}} href="/@/{{$value.name}}.html">{{$value.text}}</a>
  {{/each}}
</div>